package com.lovo.web.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDate;

@Getter
@Setter
@NoArgsConstructor
@ApiModel(value = "用户审核信息实体类",description = "用户审核信息实体类")
@TableName("userInfo")
public class UserInfoBean {
    /**商品展示主键*/
    @ApiModelProperty("用户审核信息主键")
    @TableId(value = "pk_uiId",type = IdType.AUTO)
    private long id;
    /**商品名*/
    @ApiModelProperty("用户id外键")
    @TableField("fk_userId")
    private long userId;
    /**商品类型*/
    @ApiModelProperty("审核内容")
    @TableField("ui_content")
    private String content;
    /**商品原价*/
    @ApiModelProperty("审核人")
    @TableField("ui_adminName")
    private String adminName;
    /**商品图片*/
    @ApiModelProperty("审核日期")
    @TableField("ui_updateDate")
    private LocalDate updateDate;
    /**商品图片*/
    @ApiModelProperty("创建日期")
    @TableField("ui_createDate")
    private LocalDate createDate = LocalDate.now();

    public UserInfoBean(long userId) {
        this.userId = userId;
    }
}
